import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
import { Document } from 'mongoose';

export type DeviceHeartocument = DeviceHeart & Document;

@Schema({
  collection : 'device_heart'
})
export class DeviceHeart extends Document {
  @Prop()
  simCardNo: string;

  @Prop()
  timestamp: number;

  @Prop()
  updateTime: number;
}

export const DeviceHeartSchema = SchemaFactory.createForClass(DeviceHeart);